BUILD=./build
SRC=./src

all: compile run 

compile:
	@printf 'compiling..\n'
	@rm -rf $(BUILD)
	@mkdir $(BUILD)
	@g++ $(SRC)/seq.cpp -o $(BUILD)/seq
	@g++ $(SRC)/par.cpp -fopenmp -o $(BUILD)/par 
	@g++ $(SRC)/analysis.c -lm -o $(BUILD)/analysis
run:
	@printf 'running test script..\n'
	@rm -rf ./outputs
	@mkdir outputs
	@./test.sh
